package com.skt.common_hr.common.calendar
{
	import flash.events.Event;

	public class WorkTimeCalendarEvent extends Event
	{
		//public static const SELECTED_DATE:String = "selectedDate";
		public static const SELECTED_WORKTIME:String = "selectedWorkTime";
		public static const SELECTED_VACATION:String = "selectedVacation";
		public static const MODIFY_WORKTIME:String 	 = "modifyWorkTime";
		public static const MODIFY_VACATION:String	 = "modifyVacation";
		public static const READ_WORKTIME:String 	 = "readWorkTime";
		public static const READ_VACATION:String	 = "readVacation";
		
		public var selectedDate:Date;
		public var key:String;
		public var isInsertFromCong:Boolean;
		
		public function WorkTimeCalendarEvent(type:String, selectedDate:Date, key:String="", _isInsertFromCong:Boolean=false)
		{
			super(type, false, false);
			this.selectedDate = new Date(selectedDate);
			this.key = key;
			this.isInsertFromCong = _isInsertFromCong;
		}
		
		override public function clone():Event
		{
			return new WorkTimeCalendarEvent(this.type, selectedDate, key, isInsertFromCong);
		}
	}
}